﻿using Prism.Commands;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TimeSolve
{
    class ConditionWindowViewModel:BindableBase
    {
        public ConditionWindowViewModel()
        {
            mainVM = MainViewModel.mainViewModel;

            test = new DelegateCommand(_test);
        }
        public MainViewModel mainVM { get => _mainVM; set { _mainVM = value; RaisePropertyChanged("mainVM"); } }
        private MainViewModel _mainVM;
        public MeshVM.ZoneVM selectedZone 
        {
            get => _selectedZone; 
            set
            {
                _selectedZone = value;
                RaisePropertyChanged("selectedZone");
            }
        }
        private MeshVM.ZoneVM _selectedZone;
        public MeshVM.ThreadVM selectedThread 
        { 
            get => _selectedThread;
            set 
            {
                _selectedThread = value;
                RaisePropertyChanged("selectedThread");
            }
        }
        private MeshVM.ThreadVM _selectedThread;
        public DelegateCommand test { get; set; }
        private void _test()
        {
 
        }
    }
}
